package com.eliza.kotlin.design.creation.factory.config_factory

/**
 * @version v1.0
 * @ClassName: Client
 * @Description: TODO(一句话描述该类的功能)
 * @Author: 黑马程序员
 */
object Client {
    @JvmStatic
    fun main(args: Array<String>) {
        val coffee = CoffeeFactory.createCoffee("american")
        println(coffee?.name)
        println("=============")
        val latte = CoffeeFactory.createCoffee("latte")
        println(latte?.name)
    }
}